fix(web): allow deleting non-empty projects from the warning toast#1264
fix(web): allow deleting non-empty projects from the warning toast#1264maria-rcks wants to merge 1 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
What Changed
Adds a
Delete anywaybutton to theProject is not emptywarning toast.Clicking it closes the toast, asks for confirmation, then deletes the project's threads and removes the project.
closes #665
Why
Right now the warning blocks project deletion without giving you a way to continue.
This keeps the fix small and makes the warning actionable.
Video
Screen.Recording.2026-03-20.at.9.56.38.PM.mov
Note
Allow deleting non-empty projects via a warning toast with inline 'Delete anyway' action
removeProjectcallback in Sidebar.tsx that consolidates project deletion logic (clearing drafts, dispatching the delete command) used by both empty and non-empty project flows.actionLayoutandactionVariantto support inline destructive action buttons and stacked layouts in bothToastsandAnchoredToasts.Macroscope summarized f74b447.